﻿using System;
using System.Collections.Generic;
using System.Text;
using FreeSql.DataAnnotations;

namespace Model
{
    public class OrderInfo
    {
        [Column(IsIdentity = false, IsPrimary = true)]
        public string Oid { get; set; }
        public string account { get; set; }
        public DateTime Odate { get; set; }
        public List<string> PidList { get; set; }
        public List<int> Onum { get; set; }
        //默认构造函数
        public OrderInfo() { }
        //部分参数
        public OrderInfo(string Oid, string account, DateTime Odate)
        {
            this.Oid = Oid;
            this.account = account;
            this.Odate = Odate;
        }
        //所有参数(注意！Pid与Onum的顺序是对应的！！)
        public OrderInfo(string Oid, string account, List<string> PidList, DateTime Odate, List<int> Onum)
        {
            this.Oid = Oid;
            this.account = account;
            this.PidList = PidList;
            this.Odate = Odate;
            this.Onum = Onum;
        }
    }
}
